package paperockscissors;

import java.util.ArrayList;

public class Player {
	private String name;
	private int score;
	public static final int nbMoves = 10;
	private ArrayList<RPSEnum> moves;
	
	public Player(String name) {
		this.setName(name);
		for (int i=0 ; i<Player.nbMoves ; i++) {
			this.moves.add(RPSEnum.random());
		}		
	}
	
	public Player(String name, ArrayList<RPSEnum> moves) {
		this.name = name;
		this.moves = moves;
	}

	public void addMove(RPSEnum move) {
		this.moves.add(move);
	}

	public RPSEnum getMove(int i) {
		return this.moves.get(i);
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public void setMoves(ArrayList<RPSEnum> moves) {
		this.moves = moves;
	}
}
